package com.thinkgem.jeesite.modules.quartz.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;


/**
 * 任务调度模块Entity
 * @author zhangwei
 * @version 2015-05-20
 */
public class Schedulejob extends DataEntity<Schedulejob> {
	
	private static final long serialVersionUID = 1L;
	public static final String STATUS_RUNNING = "1";
	public static final String STATUS_NOT_RUNNING = "0";
	public static final String STATUS_PAUSE = "2";
	public static final String CONCURRENT_IS = "1";
	public static final String CONCURRENT_NOT = "0";
	
	
	private String jobName;		// 名称
	private String jobGroup;		// 组名称
	private String jobStatus;		// 状态
	private String cronExpression;		// 时间表达式
	private String beanClass;		// 类路径
	private String isConcurrent;		// 是否当前任务
	private String methodName;		// 类中的方法名称
	
	
	public Schedulejob() {
		super();
	}

	public Schedulejob(String id){
		super(id);
	}

	@Length(min=0, max=255, message="名称长度必须介于 0 和 255 之间")
	public String getJobName() {
		return jobName;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}
	
	@Length(min=0, max=255, message="组名称长度必须介于 0 和 255 之间")
	public String getJobGroup() {
		return jobGroup;
	}

	public void setJobGroup(String jobGroup) {
		this.jobGroup = jobGroup;
	}
	
	@Length(min=0, max=255, message="状态长度必须介于 0 和 255 之间")
	public String getJobStatus() {
		return jobStatus;
	}

	public void setJobStatus(String jobStatus) {
		this.jobStatus = jobStatus;
	}
	
	public String getCronExpression() {
		return cronExpression;
	}

	public void setCronExpression(String cronExpression) {
		this.cronExpression = cronExpression;
	}
	
	@Length(min=0, max=255, message="类路径长度必须介于 0 和 255 之间")
	public String getBeanClass() {
		return beanClass;
	}

	public void setBeanClass(String beanClass) {
		this.beanClass = beanClass;
	}
	
	@Length(min=0, max=255, message="是否当前任务长度必须介于 0 和 255 之间")
	public String getIsConcurrent() {
		return isConcurrent;
	}

	public void setIsConcurrent(String isConcurrent) {
		this.isConcurrent = isConcurrent;
	}
	
	@Length(min=1, max=255, message="类中的方法名称长度必须介于 1 和 255 之间")
	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	
	
	
}